# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-ldaptor
_pkgname=ldaptor
pkgver=21.2.0
pkgrel=5
pkgdesc='A Pure-Python Twisted library for LDAP.'
arch=('any')
url='https://pypi.org/project/ldaptor/#files'
license=('MIT')
depends=('python' 'python-passlib' 'python-twisted' 'python-pyparsing'
         'python-six' 'python-zope-interface')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('196877393d895619f4ea5825e29e208f8719c4e1cb12d0654e4f8ee90a22ae903130a195490d6eebd70b3d658e2405732756ed21256ba21978f0fd6b942fcf39')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

